import request from '@/utils/request'

/**
 * 保存配置信息
 * @param data
 * @returns {*}
 */
export function save(data) {
  return request({
    url: 'rest/api/temp/v1/column/set/save/entity',
    method: 'post',
    data
  })
}

export function queryOne(params) {
  return request({
    url: 'rest/api/temp/v1/column/set/one',
    method: 'get',
    params
  })
}

export function queryGuestOne(params) {
  return request({
    url: 'rest/api/guest/temp/v1/column/set/one',
    method: 'get',
    params
  })
}

/**
 * 更新
 * @param data
 * @returns {*}
 */
export function update(data) {
  return request({
    url: 'rest/api/temp/v1/column/set/update/entity',
    method: 'post',
    data
  })
}

/**
 * 查询
 * @param params
 * @returns {*}
 */
export function queryEntity(params) {
  return request({
    url: 'rest/api/temp/v1/column/set/loading',
    method: 'get',
    params
  })
}

export function queryGuestEntity(params) {
  return request({
    url: 'rest/api/guest/temp/v1/column/set/loading',
    method: 'get',
    params
  })
}
